#include <cstdio>
#include <cstring>

char s[10];
int b[5][5]= {0};
int col[5]= {0};
int main() {
    for(int i=0; i<4; i++) {
        scanf("%s",s);
        for(int j=0; j<4; j++) {
            if(s[j] == '#') {
                b[i][j]=1;
                col[i]++;
            }
        }
    }
    int flag=0;
    for(int i=0; i<3; i++) {
        if(((col[i] == 3 && col[i+1] == 1) || (col[i] == 1 && col[i+1] == 3)) )
            if( !(b[i][0]==1 && b[i+1][3] == 0) && !(b[i][0]==0 && b[i+1][3] == 1) ) {
                flag=1;
                break;
            } else  {
                if( ( col[i] == 2 && col[i+1] == 2))
                    if((!(b[i][0]==1 && b[i][1]==1 && b[i+1][0]==0 && b[i+1][1]==0 )&& !(b[i][0]==0 && b[i][1]==0 && b[i+1][0]==1 && b[i+1][1]==1 ))) {
                        flag=1;
                        break;
                    }
            }
    }
    if(flag== 0)
        printf("NO\n");
    else
        printf("YES\n");
}


